﻿<%@ Page Language="C#" MasterPageFile="~/PortalMaster.Master" AutoEventWireup="true"
    Codebehind="NetApplySearch.aspx.cs" Inherits="Ankin.EHBH.Web.Portal.NetApplySearch"
    Title="医用耗材管理系统" %>

<%@ Register Assembly="Meta.Web" Namespace="Meta.Web.Controls" TagPrefix="mc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphcenter" runat="server">

    <script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../js/jquery.flexselect.js" type="text/javascript"></script>

    <script src="../js/liquidmetal.js" type="text/javascript"></script>

    <script src="../js/popup.js" type="text/javascript"></script>

    <script type="text/javascript">
      $(document).ready(function() {
        $("select[class*=flexselect]").flexselect();
        
        
        //获取供应商文本
        $('#ctl00_cphcenter_ddlSupply_flexselect').blur(function() 
        {var tt = $('#ctl00_cphcenter_ddlSupply_flexselect').attr('value');
        $('#ctl00_cphcenter_hdfSupply').attr('value',tt);
        })
        
        //获取产品名
        $('#ctl00_cphcenter_ddlExp_Name_flexselect').blur(function() 
        {var tt = $('#ctl00_cphcenter_ddlExp_Name_flexselect').attr('value');
                    if(tt!="")
            {
            $("#ctl00_cphcenter_ddlExpName2").setSelectedText(tt);
            
            //得到选中索引
            //var index=$("#ctl00_cphcenter_ddlExpName2").getSelectedIndex();
            
            //$("#ctl00_cphcenter_ddlExpName2")[0].options(index).selected = true;
            
            //触发onchang事件
            $("#ctl00_cphcenter_ddlExpName2").change();
        }
        $('#ctl00_cphcenter_hdfExp_Name').attr('value',tt);
        })
        
        /*测试COOKIES*/
        if($.cookie('popupStatus')==1)
        {
            disablePopup();
            centerPopup();
            loadPopup();
        }
        //写Cookies
        $('#wCookies').click(function(){
		$.cookie('name', 'test11213',{expires: 7});				  
		});
		//读Cookies
		$('#rCookies').click(function(){
		var test = $.cookie('popupStatus');
		alert (test);
		});
		
		$('#rCookies1').click(function(){
		var test = $.cookie('popupStatus');
		alert (test);
		});
		//删除
		$('#dCookies').click(function(){
		$.cookie('popupStatus', '0',{expires: 7});							  
		});
		
      });




    </script>

    <table width="650" border="1">
        <tbody>
            <tr>
                <td>
                    医用耗材请领</td>
            </tr>
            <tr>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    <table cellspacing="0" cellpadding="0" width="100%" border="1">
                        <tbody>
                            <tr>
                                <td colspan="7">
                                    医用耗材请领信息</td>
                            </tr>
                            <tr>
                                <td style="width: 82px">
                                    请领时间</td>
                                <td style="width: 152px">
                                    <mc:DropDownCalendar ID="input_date_ahead" runat="server" BackColor="White" BorderColor="ButtonFace"
                                        BorderStyle="Inset" BorderWidth="2px" Height="1px" Width="85px">
                                        <WeekendDayStyle BackColor="#C0FFFF" ForeColor="Brown" />
                                        <TitleStyle BackColor="#C00000" ForeColor="White" />
                                        <DayHeaderStyle BackColor="#C0C0FF" />
                                        <DateStyle BackColor="#FFFFC0" />
                                    </mc:DropDownCalendar>
                                </td>
                                <td style="width: 84px">
                                    至</td>
                                <td style="width: 93px">
                                    <mc:DropDownCalendar ID="input_date_down" runat="server" BackColor="White" BorderColor="ButtonFace"
                                        BorderStyle="Inset" BorderWidth="2px" Height="1px" Width="85px">
                                        <WeekendDayStyle BackColor="#C0FFFF" ForeColor="Brown" />
                                        <TitleStyle BackColor="#C00000" ForeColor="White" />
                                        <DayHeaderStyle BackColor="#C0C0FF" />
                                        <DateStyle BackColor="#FFFFC0" />
                                    </mc:DropDownCalendar>
                                    
                                    </td>
                            </tr>
                            <tr>
                                <td>
                                    产品名称</td>
                                <td style="width: 152px">
                                    <asp:DropDownList ID="ddlExp_Name" runat="server" AutoPostBack="true" CssClass="flexselect">
                                    </asp:DropDownList>
                                    <div style="display: none">
                                        <asp:DropDownList ID="ddlExpName2" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlExpName2_SelectedIndexChanged">
                                        </asp:DropDownList></div>
                                </td>
                                <td>
                                    规格型号</td>
                                <td style="width: 93px">
                                    <asp:DropDownList ID="ddlSpecs" runat="server">
                                    </asp:DropDownList></td>
                                <td colspan="3">
                                    <asp:Button ID="txtSearch" runat="server" Text="查询" OnClick="txtSearch_Click" /></td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                        <tbody>
                            <tr>
                                <td style="height: 18px">
                                    请领单明细</td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;<asp:GridView ID="grvApplyDetail" runat="server" AutoGenerateColumns="False" DataKeyNames="bill_id"
                                        OnRowCommand="grvApplyDetail_RowCommand" OnRowDataBound="grvApplyDetail_RowDataBound"
                                        Width="100%" AllowPaging="True" OnPageIndexChanging="grvApplyDetail_PageIndexChanging" PageSize="5">
                                        <Columns>
                                            <asp:BoundField DataField="bill_id" HeaderText="请领单号" />
                                            <asp:BoundField DataField="Create_Date" HeaderText="请领时间" />
                                            <asp:BoundField DataField="applier" HeaderText="请领人" />
                                            <asp:BoundField DataField="dept_code" HeaderText="请领科室" />
                                            <asp:BoundField DataField="status" HeaderText="请领状态" />
                                            <asp:ButtonField ButtonType="Button" Text="详细" CommandName="detail" />
                                        </Columns>
                                    </asp:GridView>
                                    &nbsp; &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="height: 19px">
                                    &nbsp;
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;<asp:Button ID="btnCancel" runat="server" Text="清空"></asp:Button>
                    &nbsp; &nbsp;&nbsp;<br />
                    &nbsp;&nbsp;
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>
